﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
    public class LoaiSanPhamBUS : ManamentBase<LoaiSanPham>
    {
        LoaiSanPhamDAO _DAO = new LoaiSanPhamDAO();
        public override List<LoaiSanPham> GetData()
        {
            return _DAO.GetList();
        }
        public override bool Insert(Entity obj)
        {
            return _DAO.Insert((LoaiSanPham)obj);
        }
        public override bool Update(Entity obj)
        {
            return _DAO.Update((LoaiSanPham)obj);
        }
        public override bool Delete(Entity obj)
        {
            return _DAO.Delete((LoaiSanPham)obj);
        }
    }
}
